﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaHan.WorkTicket.DataObjects
{
    public class MenuDTO:BaseDTO
    {
        [Required] 
        [DisplayName("菜单名称")]
        public string Name
        {
            get;
            set;
        }

        [DisplayName("Action")]
        public string Action { get; set; }

        [DisplayName("Controller")]
        public string Controller { get; set; }

        [DisplayName("图标")]
        public string Ico { get; set; }

        public MenuDTO ParentMenu { get; set; }

        public Guid ParentMenuID { get; set; }

        public List<MenuDTO> ChildMenus { get; set; }

    }
}
